package com.ql.gamelogm.service;

import com.ql.gamelogm.entities.Manager;
import com.ql.gamelogm.entities.Right;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ManagerService {
    //查询所有manager
    List<Manager> findAllManager();

    //通过id查询管理员表
    List<Manager> findManagerByID(String id);
    /*修改密码*/
    boolean updatePwd(String pwd,String id);
    //重置密码
    boolean updatenPwd(String pwd,String email);
    //添加管理员
    boolean addManager(Manager manager);
    //修改管理员信息
    boolean updateManager(Manager manager,String id);
    //删除管理员
    boolean deleteManager(String id);
    //管理员分页
    Page<Manager> getManager(int pageNum, int pageSize);

    List<Right> findAllManagerRight();
    List<Right> findRightById(String id);
    boolean addRight(Right right);
    public boolean updateRight(Right right,String id);
    boolean deleteRightById(String id);
    //权限分页
    Page<Right> getRights(int pageNum, int pageSize);

}
